﻿@model ThaireInvestmentWeb.WcfSerivce.UnitTrustHeaderDTO
@{
    Layout = null;
}

@if (Model.Pars != null)
{
    var grid = new WebGrid(source: Model.Pars);
    @grid.GetHtml(tableStyle: "tablelist", headerStyle: "headertable", displayHeader: @Model.Pars.Any(),
            columns: grid.Columns(
                grid.Column(header: "NO.", format: item => item.WebGrid.Rows.IndexOf(item) + 1, canSort: false),
                grid.Column(columnName: "Par", header: "Par", canSort: false),
                grid.Column(columnName: "Date", header: "Par Date", format: (item) => item.Date != null ? item.Date.ToString("dd/MM/yyyy") : "", canSort: true))
                );
}